package com.ysx;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;

/**
 * @USER: ysx
 * @CREATE: 2021/4/21 14:52
 */
@Configuration
public class testdependsOn {

	@Bean
	public DependsA dependsA() {
		return new DependsA();
	}

	@Bean
	@DependsOn(value = {"dependsA"})
	public DependsB dependsB() {
		return new DependsB();
	}

}
